// recode time
/**
 * class TimeThread
 *   - recode time
 */
public class TimeThread extends Thread {
	private static int time = 0;
	
	public void run() {
		try {
			while (true) {
				sleep(10); // can be changed to another value;
				time ++;
				//if (time % 100 == 0)
				//System.out.println(time/100 + " s");
			}
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
	}
	
	static public int getTime() {
		return time;
	}
	
	static public void setTime(int newTime) {
		time = newTime;
	}
	
	static public void resetTime() {
		time = 0;
	}
}
